package com.lagou.edu.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/email")
public class Emailcontroller {

    @RequestMapping("/{email}/{code}")
    public boolean sendCode(@PathVariable String email, @PathVariable String code){
        // 控制台打印代替发送邮件
        System.out.println("==========成功将验证码:" + code + "发送到：" + email + "邮箱");
        return true;
    }

}
